using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace LFromeWork
{
    public class UIBase : MonoBehaviour
    {
        protected UICtrlBase m_UICtrl;

        private void Awake()
        {
            OnAwake();
        }

        /// <summary>
        /// 初始化组件
        /// </summary>
        protected virtual void OnAwake()
        {
        }

        /// <summary>
        /// ui初始化
        /// </summary>
        public virtual void Init()
        {
        }

        /// <summary>
        /// ui释放
        /// </summary>
        public virtual void Release()
        {
            m_UICtrl = null;
        }

        /// <summary>
        /// 断线重接刷新接口
        /// </summary>
        public virtual void ReconnectRefresh()
        {
        }
    }
}
